function appendPageHtml(html, data,gotoPage) {
    html += '<div class="page">';
    if (data.page.pagenum == 1) {
        html += '<a href="#" class="page-active">&lt;</a>';
    } else {
        html += '<a href="#" onClick="'+gotoPage+'('+1+')">&lt;</a>';
    }
    for (var i = data.page.startPage; i <= data.page.endPage; i++) {
        if (data.page.pagenum == i) {
            html += '<a class="page-active">' + i + '</a>';
        } else {
            html += '<a href="#" onClick="'+gotoPage+'(' + i + ')">' + i + '</a>';
        }
    }
    if (data.page.pagenum == data.page.totalpage) {
        html += '<a href="#" class="page-active">&gt; </a>';
    } else {
        html += '<a href="#" onClick="'+gotoPage+'(' + data.page.totalpage + ')">&gt;</a>';
    }
    html += '</div>';
    return html;
}